<extend name="template/base_index" />


<block name="area_header">

    <link rel="stylesheet" type="text/css" media="all" href="__CDN__/jquery-datetimepicker/jquery.datetimepicker.css">
    <script type="text/javascript" src="__CDN__/jquery-datetimepicker/jquery.datetimepicker.js"></script>
</block>

<block name="area_body">
    {:W('Menus/topbar')}
    <div class="admin-main container-fluid">
        {:W('Menus/left')}
        <div class="admin-main-content">
            {:W('Menus/breadcrumb')}
            <notempty name="parent_vo">
                <div class="text-center"><h4>上级类目: {$parent_vo.name} </h4></div>
            </notempty>

            <!-- 过滤\查询按钮 -->
            <div class="filter-controls">
                <!-- 日期查询 -->
                <form action="{:U('Admin/Product/private_people')}" method="post" class="form-inline">
                    <div class="form-group">
                        <label>类目名称</label>
                        <select  name="fenlei" >
                            <option>请选择</option>
                            <volist name="private_fen" id="vi">
                            <option value="{$vi.id}">{$vi.made_name}</option>
                            </volist>
                            </select>
                    </div>
                    <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-search"></i>{:L('BTN_SEARCH')}</button>
                </form>
            </div>
            <!-- 操作按钮 -->
            <div class="btn-controls">
                <neq name="preparent" value="-1">
                    <a href="{:U('Admin/Category/index',array('parent'=>$preparent,'preparent'=>$prepreparent))}" class="btn btn-default btn-sm"><i class="fa fa-reply"></i>返回上一级</a>
                </neq>

            </div>

            <table class="table table-striped table table-hover  table-condensed">
                <thead>
                <tr>
                    <th>
                        <input type="checkbox" class="selectall" onclick="myUtils.selectall(this,'.selectitem');" />
                    </th>
                    <th>
                        参与用户
                    </th>
                    <th>
                        参与定制名称
                    </th>
                    <th>
                        剩余储值
                    </th>
                    <th>
                        定制折扣
                    </th>
                    <th>
                       参与时间
                    </th>

                    <!--<th>-->
                        <!--操作-->
                    <!--</th>-->
                </tr>
                </thead>
                <tbody>
                <empty name="info">
                    <tr>
                        <td colspan="4" class="text-center">{:L('NO_DATA')}</td>
                    </tr>
                    <else/>
                    <volist name="info" id="vo">
                        <tr>
                            <td>
                                <input type="checkbox" value="{$vo.id}" name="ids[]" class="selectitem" /></td>
                            <td>
                               {$vo.username}
                            </td>
                            <td>
                                {$vo['privatename']}
                            </td>
                            <td>
                                {$vo.money}
                            </td>
                            <td>
                                {$vo.discount}
                            </td>
                            <td>
                                {$vo.create_time|date='Y-m-d',###}
                            </td>


                            <!--<td>-->
                                <!--<a href="{:U('Admin/Product/private_edit',array('id'=>$vo['id']))}" class="btn btn-sm btn-default"><i class="fa fa-edit"></i>编辑</a>-->
                                <!--<a href="{:U('Admin/Product/private_del',array('id'=>$vo['id']))}" class="btn btn-sm btn-danger ajax-get confirm"><i class="fa fa-trash"></i>删除</a>-->
                            <!--</td>-->
                        </tr>

                    </volist>
                </empty>
                </tbody>
            </table>
            <div>{$show}</div>
        </div>

        <script type="text/javascript">
            $(function() {
                $('#startdatetime').datetimepicker({
                    lang: 'ch',
                    format:'Y-m-d',
                    timepicker:false,
                });
                $('#enddatetime').datetimepicker({
                    lang: 'ch',
                    format:'Y-m-d',
                    timepicker:false,
                });
            });
        </script>
    </div>
    <!-- END admin-main-content -->
    </div>
    <!-- END admin-main-->
</block>

<block name="area_footer">

</block>